asm.RecordClassGenerator - bugette or not?

General discussion on the JZOS batch launcher and toolkit
Post Reply
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

asm.RecordClassGenerator - bugette or not?

Post by JohnMcKown »

Still me, still working on my SMF stuff. And I found another problem. But it is likely not really with RecordClassGenerator, but with the characters valid in a Java name. Some of the variable in the SMF DSECT for record types 72, 74 and 113. The names end in a # (hash sign, pound sign, octothorpe). I don't know what could be done about this. Modifying the IBM macro is not an option!

--
John McKown
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

Post by JohnMcKown »

OK, what I did was open up each Java program which did not compile and changed the # to a _. They then compiled. I'll figure out some way to automate this, I guess.

--
John McKown
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

Post by JohnMcKown »

I've also found that Java doesn't like at signs @ in a variable name either.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

We will add this to our bug list. Do you have any suggestions on the best mappings for these characters?
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

Post by JohnMcKown »

That's a good question, but I'm not really a very good Java programmer. You might consider mapping # to _hash_ and @ to _at_ or something similar to that. The only problem which might occur in any case would be a name collision.
Post Reply