Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use -source 1.3 or lower to use 'assert' as an identifier #1

Open
ghost opened this issue Mar 18, 2018 · 2 comments
Open

use -source 1.3 or lower to use 'assert' as an identifier #1

ghost opened this issue Mar 18, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 18, 2018

Hi! I like the idea of Java Operating System (We need a simple modular OS)
there is a bunch of errors after doing make under linux:

Removing old class files...
Finding Java files...
Compiling...
libs/zero_misc/jx/zero/Debug.java:49: error: ')' expected
	assert(condition, message);
	                ^
libs/zero_misc/jx/zero/Debug.java:49: error: not a statement
	assert(condition, message);
	                  ^
libs/zero_misc/jx/zero/Debug.java:49: error: ';' expected
	assert(condition, message);
	                         ^
libs/zero_misc/jx/zero/Debug.java:52: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    public final static void assert(boolean condition) {
                             ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/zero_misc/jx/zero/Debug.java:53: error: ')' expected
	assert(condition,""); 
	                ^
libs/zero_misc/jx/zero/Debug.java:53: error: not a statement
	assert(condition,""); 
	                 ^
libs/zero_misc/jx/zero/Debug.java:53: error: ';' expected
	assert(condition,""); 
	                   ^
libs/zero_misc/jx/zero/Debug.java:56: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    public static final void assert(boolean condition, String message) {
                             ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/classfile/jx/classfile/datatypes/BCBasicDatatype.java:132: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(datatype != VOID); 
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/classfile/jx/classfile/datatypes/BasicTypeDescriptor.java:21: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(typeDesc.length() >= 1); 
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/classfile/jx/classfile/constantpool/ConstantPool.java:128: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(false, "This must not happen "+tag); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/collections/jx/collections/QuickSort.java:64: error: unmappable character for encoding UTF8
	   // Suche gr��eres Element von links 
	              ^
libs/collections/jx/collections/QuickSort.java:64: error: unmappable character for encoding UTF8
	   // Suche gr��eres Element von links 
	               ^
libs/verifier/jx/verifier/JVMState.java:75: error: unmappable character for encoding UTF8
	//FEHLER pr�fen, ob das auch �berall in den abgeleiteten states richtig abgefangen wird!
	           ^
libs/verifier/jx/verifier/JVMState.java:75: error: unmappable character for encoding UTF8
	//FEHLER pr�fen, ob das auch �berall in den abgeleiteten states richtig abgefangen wird!
	                             ^
libs/verifier/jx/verifier/JVMState.java:77: error: unmappable character for encoding UTF8
	//FEHLER das geh�rt eigentlich HIER nicht her!
	                ^
libs/verifier/jx/verifier/bytecode/ByteCode.java:347: error: unmappable character for encoding UTF8
	//FEHLER sehr aufw�ndig, vielleicht gehts anders einfacher.
	                  ^
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:43: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	for (Enumeration enum = target.elements(); enum.hasMoreElements(); ) {
	                 ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:43: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	for (Enumeration enum = target.elements(); enum.hasMoreElements(); ) {
	                                           ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:44: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    if (((String)enum.nextElement()).equals(element))
	                 ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:52: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	for (Enumeration enum = source.elements(); enum.hasMoreElements(); )
	                 ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:52: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	for (Enumeration enum = source.elements(); enum.hasMoreElements(); )
	                                           ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCInterfaceTypes.java:53: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    addUnique(target, (String)enum.nextElement());
	                              ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TypeCheck.java:34: error: unmappable character for encoding UTF8
	//FEHLER sch�ner machen: lieber gleich von hier aus verifyMethod aufrufen.
	            ^
libs/verifier/jx/verifier/typecheck/TCObjectTypes.java:170: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	for (Enumeration enum = other.getInterfaces().elements();
	                 ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCObjectTypes.java:171: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	     enum.hasMoreElements();
	     ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/typecheck/TCObjectTypes.java:173: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    String iName = (String)enum.nextElement();
	                           ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/verifier/jx/verifier/wcet/OpenIfList.java:135: error: unmappable character for encoding UTF8
	    //FEHLER einfach einen Error schmeissen ist auch zu wenig, eigentlich m�sste
	                                                                           ^
libs/verifier/jx/verifier/wcet/OpenIfList.java:136: error: unmappable character for encoding UTF8
	    //wenn sowas auftritt die simulation abgebrochen werden und statt dessen lz� eingef.
	                                                                               ^
libs/verifier/jx/verifier/wcet/CFGraph.java:77: error: unmappable character for encoding UTF8
		    //FEHLER taugt nicht f�r switch
		                          ^
libs/verifier/jx/verifier/wcet/WCETState.java:242: error: unmappable character for encoding UTF8
			//FEHLER eigentlich nur die Simulation stoppen und zur LZ� �bergehen
			                                                         ^
libs/verifier/jx/verifier/wcet/WCETState.java:242: error: unmappable character for encoding UTF8
			//FEHLER eigentlich nur die Simulation stoppen und zur LZ� �bergehen
			                                                           ^
libs/verifier/jx/verifier/wcet/WCETState.java:250: error: unmappable character for encoding UTF8
		    //FEHLER eigentlich m�sste da eine richtige Addresse stehen!
		                         ^
libs/verifier/jx/verifier/wcet/WCETState.java:345: error: unmappable character for encoding UTF8
		    //FEHLER eigentlich m�sste da eine richtige Addresse stehen!
		                         ^
libs/verifier/jx/verifier/wcet/BasicBlock.java:38: error: unmappable character for encoding UTF8
	    //FEHLER eigentlich geh�rt auch das erst nach den exception handler hin
	                           ^
libs/verifier/jx/verifier/wcet/BasicBlock.java:88: error: unmappable character for encoding UTF8
	    //evtl. auch bei jsr o.�.?
	                           ^
libs/verifier/jx/verifier/wcet/BasicBlock.java:184: error: unmappable character for encoding UTF8
	//FEHLER warum m�ssen die ifs �berhaupt noch teil des BBs sein?
	                ^
libs/verifier/jx/verifier/wcet/BasicBlock.java:184: error: unmappable character for encoding UTF8
	//FEHLER warum m�ssen die ifs �berhaupt noch teil des BBs sein?
	                              ^
libs/verifier/jx/verifier/wcet/OpenIfListElement.java:25: error: unmappable character for encoding UTF8
	    throw new Error("Internal Error: ifBranch < 0�");
	                                                 ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:221: error: unmappable character for encoding UTF8
	    //FEHLER es sollte auch wirklich ZEIT draufgez�hlt werden,  nicht nur die Anzahl der Befehle
	                                                  ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:342: error: unmappable character for encoding UTF8
	//FEHLER eigentlich m�ssten auch noch cpool entries f�r die eHandler eingef�gt werden(?)
	                     ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:342: error: unmappable character for encoding UTF8
	//FEHLER eigentlich m�ssten auch noch cpool entries f�r die eHandler eingef�gt werden(?)
	                                                     ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:342: error: unmappable character for encoding UTF8
	//FEHLER eigentlich m�ssten auch noch cpool entries f�r die eHandler eingef�gt werden(?)
	                                                                           ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:382: error: unmappable character for encoding UTF8
	//FEHLER eigentlich m�sste hier noch unterschieden werden, ob static oder nicht static methode. Wenn n�mlich nicht static, dann fangen par. bei 0 an, sonst erst bei 1!
	                     ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:382: error: unmappable character for encoding UTF8
	//FEHLER eigentlich m�sste hier noch unterschieden werden, ob static oder nicht static methode. Wenn n�mlich nicht static, dann fangen par. bei 0 an, sonst erst bei 1!
	                                                                                                      ^
libs/verifier/jx/verifier/wcet/WCETAnalysis.java:514: error: unmappable character for encoding UTF8
	//FEHLER sollte noch unterst�tzt werden (wider einbauen)
	                            ^
libs/verifier/jx/verifier/wcet/BCEffectPass2.java:129: error: unmappable character for encoding UTF8
	    //FEHLER soll doch der "benutzer" dann sagen m�ssen, welchen wert das annimmt.
	                                                  ^
libs/verifier/jx/verifier/wcet/WCETSRLocalVars.java:28: error: unmappable character for encoding UTF8
	//FEHLER -konstanten ber�cksichtigen?
	                        ^
libs/verifier/jx/verifier/wcet/SimState.java:99: error: unmappable character for encoding UTF8
	//FEHLER zur Sicherheit m�ssten hier eigentlich noch die Stack und l-Var inhalte auf 
	                         ^
libs/verifier/jx/verifier/wcet/SimState.java:100: error: unmappable character for encoding UTF8
	//Konsistenz gepr�ft werden!
	                 ^
libs/verifier/jx/verifier/wcet/SimState.java:467: error: unmappable character for encoding UTF8
	//FEHLER das ist grauenhaft so. Besser eine funktion, die die wirkliche anzahl zur�ckliefert und dann funktionen die sich bei den einzelnen passes drum kuemmern die anzahl anzupassen
	                                                                                  ^
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:76: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	Enumeration enum = symbolTable.elements(); 
	            ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:78: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	while(enum.hasMoreElements()) {
	      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:79: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    SymbolTableEntryBase entry = (SymbolTableEntryBase)enum.nextElement();
	                                                       ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:1672: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	Enumeration enum = symbolTable.elements(); 
	            ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:1674: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	while(enum.hasMoreElements()) {
	      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:1675: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    SymbolTableEntryBase entry = (SymbolTableEntryBase)enum.nextElement(); 
	                                                       ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeIA32.java:1745: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	    Debug.assert(handlerArray[i].isFinished()); 
	          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeDynamicIA32.java:1544: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	Enumeration enum = symbolTable.elements(); 
	            ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeDynamicIA32.java:1546: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	while(enum.hasMoreElements()) {
	      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeDynamicIA32.java:1547: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
	    SymbolTableEntryBase entry = (SymbolTableEntryBase)enum.nextElement(); 
	                                                       ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
libs/compiler/jx/compiler/nativecode/BinaryCodeDynamicIA32.java:1615: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	    Debug.assert(handlerArray[i].isFinished()); 
	          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/TCBOffsetSTEntry.java:29: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/ProfileSTEntry.java:36: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/SymbolTableEntryBase.java:128: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isResolved()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/SymbolTableEntryBase.java:219: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(nr!=0,"Symbol not registered in SymbolTableEntryBase: "+this.getClass().getName());
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/SymbolTableEntryBase.java:296: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isImmediateRelative); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/InternalAddrSTEntry.java:31: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(isResolved()); 
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/InternalAddrSTEntry.java:44: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(isReadyForApply());
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/InternalAddrSTEntry.java:50: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(isReadyForApply());
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler/jx/compiler/symbols/AllocMultiArraySTEntry.java:24: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
    Debug.assert(isReadyForApply()); 
          ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/ClassStore.java:91: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(sc != null);
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/ClassStore.java:92: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(bc != null);
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/ClassStore.java:123: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(bc != sc);
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/ClassStore.java:124: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(sc != null);
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/ClassStore.java:125: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(bc != null);
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/DEPFunctionSTEntry.java:26: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/ClassSTEntry.java:33: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/VMSupportSTEntry.java:75: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
		Debug.assert(isReadyForApply()); 
		      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/PrimitiveClassSTEntry.java:30: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/AllocObjectSTEntry.java:19: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/ExceptionHandlerSTEntry.java:20: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/AllocArraySTEntry.java:24: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/DirectMethodCallSTEntry.java:31: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/LongArithmeticSTEntry.java:37: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/StaticFieldSTEntry.java:47: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/StringSTEntry.java:35: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)
libs/compiler_env/jx/compiler/persistent/DomainZeroSTEntry.java:22: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
	Debug.assert(isReadyForApply()); 
	      ^
  (use -source 1.3 or lower to use 'assert' as an identifier)

@SwingOS
Copy link

SwingOS commented Oct 17, 2021

How did you build this? Please say me in detail.

@sPyOpenSource
Copy link

  1. you have two binaries need to build: jxcore and realmode.
  2. now you have to build the classes files
  3. from the classes files you need to build the binary version of the classes libraries
  4. now you have to put it together in a zip file
  5. boot it with grub multiboot into jx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants